import { Pipe, PipeTransform } from '@angular/core';
import { type } from 'os';

@Pipe({ name: 'exState' })
export class ExStatePipe implements PipeTransform {
    transform(value: string | number): String {
        let val = Number(value)

        switch (val) {
            case 0:
                return '未处理'
            case 1:
                return '处理中'
            case 2:
                return '已驳回'
            case 3:
                return '已完成'
            case 4:
                return '待确认'

            default:
                return '';
        }

    }
}
